package com.zyb.base.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/11/12 22:04
 * @Description 配置属性
 */
@PropertySource(value = "classpath:custom.yml", encoding = "UTF-8")
@ConfigurationProperties(prefix = "custom.spring")
public class CustomProperties {
    /**
     * 开启自动配置
     */
    private boolean fastjson;
    /**
     * cors 跨域配置
     */
    private boolean cors;

    public boolean isFastjson() {
        return fastjson;
    }

    public void setFastjson(boolean fastjson) {
        this.fastjson = fastjson;
    }

    public boolean isCors() {
        return cors;
    }

    public void setCors(boolean cors) {
        this.cors = cors;
    }
}
